package br.net.woodstock.tickettoride.api.jee6.access.impl;

import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;

import br.net.woodstock.tickettoride.api.access.UserService;
import br.net.woodstock.tickettoride.api.access.common.AbstractUserService;
import br.net.woodstock.tickettoride.api.core.SimpleQueryableRepository;
import br.net.woodstock.tickettoride.api.core.SimpleRepository;

@Local(UserService.class)
@Stateless(name = "userServiceImpl")
public class UserServiceImpl extends AbstractUserService {

	private static final long			serialVersionUID	= 7929971241857912337L;

	@EJB(name = "simpleRepository")
	private SimpleRepository			simpleRepository;

	@EJB(name = "simpleQueryableRepository")
	private SimpleQueryableRepository	queryableRepository;

	@Override
	public SimpleRepository getSimpleRepository() {
		return this.simpleRepository;
	}

	@Override
	public SimpleQueryableRepository getSimpleQueryableRepository() {
		return this.queryableRepository;
	}

}
